package com.ruan.openfeign;

import com.ruan.pojo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName:AddressCenterOpenfeign
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/6/20 15:44
 **/
@FeignClient(value = "address-center",path = "/address",fallback = AddressCenterOpenfeignFallBack.class)
public interface AddressCenterOpenfeign {

    @RequestMapping("/getAddressById/{id}")
    public Address getAddressById(@PathVariable(value = "id") Integer id);

}
